/**
 * file: article.js
 * description: 文章模型
 * author : [" t_fate@163.com "]
 * date : 2014/3/7
 */

var mongoose = require('mongoose');

var Schema = mongoose.Schema,
    ObjectId = Schema.ObjectId;

var Article = new Schema({
    aid : ObjectId,
    title : String,
    body : String,
    author : ObjectId,
    created : { type : Date, default : Date.now }
});

mongoose.model('Article', Article);